
"""install custom features that need to run on App Engine per each request."""

import sys
import os
# libpaths = [
#     os.path.abspath(os.path.join(os.path.dirname(__file__), 'boto.zip'))
# ]

def install():
    # make custom libs available
    # for libpath in libpaths:
    #     if libpath not in sys.path:
    #         sys.path.append(libpath)
    
    # Add fake error and gaierror to socket module. Required for boto support.
    import socket
    class error(Exception):
        pass
    class gaierror(Exception):
        pass
    socket.error = error
    socket.gaierror = gaierror